<%@page import="java.util.Enumeration"%>
<%@page import="java.util.Locale"%>
<%@page import="java.util.ResourceBundle"%>
<%@taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt" %>
<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>国际化、国际化标签</title>
</head>
<body>

<fmt:setBundle var="bundle" basename="resource.myproperties" scope="page"/>
<%
ResourceBundle bundle = ResourceBundle.getBundle("resource.myproperties",request.getLocale());
Enumeration<String> enums=bundle.getKeys();
while(enums.hasMoreElements()){
	System.out.println(enums.nextElement());
}

%>


	<form action="">
	<fmt:message key="username" bundle="${bundle }"></fmt:message>	<input type="text" name="username"><br>
	<fmt:message key="password" bundle="${bundle }"></fmt:message><input type="password" name="password"><br>
	 <input type="submit" value="<fmt:message key="sub" bundle="${bundle }"></fmt:message>"> 
	 
	 
	 
</body>
</html>